package com.org.model;

import java.sql.Timestamp;

/**
 * CartItem entity. @author MyEclipse Persistence Tools
 */

public class CartItem implements java.io.Serializable {

	// Fields

	private Long id;
	private Product product;
	private Cart cart;
	private Timestamp createDate;
	private Timestamp modifyDate;
	private Integer quantity;

	// Constructors

	/** default constructor */
	public CartItem() {
	}

	/** full constructor */
	public CartItem(Product product, Cart cart, Timestamp createDate,
			Timestamp modifyDate, Integer quantity) {
		this.product = product;
		this.cart = cart;
		this.createDate = createDate;
		this.modifyDate = modifyDate;
		this.quantity = quantity;
	}

	// Property accessors

	public Long getId() {
		return this.id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public Product getProduct() {
		return this.product;
	}

	public void setProduct(Product product) {
		this.product = product;
	}

	public Cart getCart() {
		return this.cart;
	}

	public void setCart(Cart cart) {
		this.cart = cart;
	}

	public Timestamp getCreateDate() {
		return this.createDate;
	}

	public void setCreateDate(Timestamp createDate) {
		this.createDate = createDate;
	}

	public Timestamp getModifyDate() {
		return this.modifyDate;
	}

	public void setModifyDate(Timestamp modifyDate) {
		this.modifyDate = modifyDate;
	}

	public Integer getQuantity() {
		return this.quantity;
	}

	public void setQuantity(Integer quantity) {
		this.quantity = quantity;
	}

}